<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>首页</title>
	<meta charset="UTF-8" />
	<meta name="keywords" content="CTER,微量元素,微量元素营养研究所"/>
	<meta name="description" content="cter description"/>
	<meta name="author" content="CTER"/>
	<meta name="Copyright" content="CTER机构版权所有"/>
	<script type="text/javascript" src="/Public/javascript/sea.js"></script>
	<script type="text/javascript" src="/Public/javascript/seajs-config.js"></script>
	<script type="text/javascript">
		seajs.use(['seajs-control', 'cookie', 'bootstrap'], function(){
			$(document).seaLoad();
			if(typeof callback == 'function') callback();
		});
	</script>
	<style>
		div.page-header{
			padding-top: 30px;
		}
	</style>
</head>
<body>
<div class="navbar navbar-default navbar-fixed-top">
	<div class="container">
		<div class="navbar-header">
			<a class="navbar-brand" href="/">Discuz UCenter 用户同步中心测试页面</a>
		</div>
		<div id="navbar-main" class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li>
					<a href="{U('Index/register')}">用户注册</a>
				</li>
				<li>
					<a href="{U('Index/login')}">用户登录</a>
				</li>
				<li class="dropdown">
					<a id="themes" href="#" data-toggle="dropdown" class="dropdown-toggle">修改用户信息 <span class="caret"></span></a>
					<ul aria-labelledby="themes" class="dropdown-menu">
						<li><a href="{U('Index/pswd')}">修改密码</a></li>
						<li><a href="{U('Index/avatar')}">修改头像</a></li>
						<li><a href="frame/bootstrap2.html">修改信息</a></li>
					</ul>
				</li>
				<li>
					<a href="{U('Index/logout')}">退出系统</a>
				</li>
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<li><a target="_blank" href="http://builtwithbootstrap.com/">Built With Bootstrap</a></li>
				<li><a target="_blank" href="https://wrapbootstrap.com/?ref=bsw">WrapBootstrap</a></li>
			</ul>
		</div>
	</div>
</div>
<div class="container page-header">
	{if in_array($env.action, array('index', 'Index', 'login'))}
	<div class="row centralDiv">
		<div class="col-md-6">{hook('checkHtml')}</div>
		<div class="col-md-6" id="AjaxLogin">{hook('checkAjax')}</div>
	</div>
	{/if}
	{if $env.action == 'register'}
	<div class="row centralDiv">
		<div class="col-md-12">
			<div class="panel panel-default">
				<div class="panel-heading"><strong>UCenter 用户注册窗口</strong></div>
				<div class="panel-body">
					<form class="form-horizontal" role="form" action="{U('Index/register')}" method="post" data-sea="Validator">
						<div class="form-group">
							<label class="col-sm-2 control-label">用户名</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" placeholder="用户名" name="username">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">登录密码</label>
							<div class="col-sm-10">
								<input type="password" class="form-control" placeholder="Password" name="password">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">重复密码</label>
							<div class="col-sm-10">
								<input type="password" class="form-control" placeholder="Password" name="repasswd">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">电子邮件</label>
							<div class="col-sm-10">
								<input type="type" class="form-control" placeholder="email" name="email">
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-offset-1 col-sm-5">
								<button type="submit" class="btn btn-primary btn-block">注册</button>
							</div>
							<div class="col-sm-offset-1 col-sm-5">
								<button type="reset" class="btn btn-info btn-block">取消</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	{/if}
	{if $env.action == 'pswd'}
	<div class="row centralDiv">
		<div class="col-md-12">
			<div class="panel panel-default">
				<div class="panel-heading"><strong>UCenter 用户修改密码窗口</strong></div>
				<div class="panel-body">
					<form class="form-horizontal" role="form" action="{U('Index/pswd')}" method="post" data-sea="Validator">
						<div class="form-group">
							<label class="col-sm-2 control-label">旧的密码</label>
							<div class="col-sm-10">
								<input type="password" class="form-control" placeholder="旧的密码" name="oldpw">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">新的密码</label>
							<div class="col-sm-10">
								<input type="password" class="form-control" placeholder="新的密码" name="password">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">重复密码</label>
							<div class="col-sm-10">
								<input type="password" class="form-control" placeholder="重复密码" name="repasswd">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">电子邮件</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" name="email" value="{$email}">
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-offset-1 col-sm-5">
								<button type="submit" class="btn btn-primary btn-block">修改</button>
							</div>
							<div class="col-sm-offset-1 col-sm-5">
								<button type="reset" class="btn btn-info btn-block">取消</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	{/if}
	{if $env.action == 'avatar'}
	<div class="row centralDiv">
		<div class="col-md-12">
			<div class="panel panel-default">
				<div class="panel-heading"><strong>UCenter 用户修改密码窗口</strong></div>
				<div class="panel-body">{$avatar}</div>
			</div>
		</div>
	</div>
	{/if}
</div>
</body>
</html>